http://www.inis.gov.ie/en/INIS/Pages/Stamps
As far as i know/think Stamp1a is excluded in terms of citizenship. That time is not counted. Said that give citizenship section a call.
Time will get calculated as following:
Non-EEA nationals
If you are not a citizen of an EU state or of Norway, Iceland or Liechtenstein, any period where you were required by law to have permission to remain in the State, but did not, will not be reckoned (remember that certain non-nationals are exempted by law from the requirement to have permission to remain). In addition, periods of residence in the State will not be reckoned which were covered by a permission to remain if that permission was—
for the purposes of study (whether or not that study involved you being in employment during any of the period of study), or
while your claim for asylum was being examined.
Regards
Tiggs