If a technomancer gets stuck on the matrix (E-ghost) or a Sprite becomes self aware why wouldn't they have their virtual persona and their resonance?
Since Sprites are connected to the resonance and have no bodies wouldn't the same apply to E-Ghost Technomancers?
My suggestion
AI Character (Race)
Technomancer Quality (Ability)
And then be able to buy attributes as an AI and Resonance.
Rating would be replaced by Resonance and the rules for averaging the Rating attribute should be removed.
Thus you can make a Technomancer AI with a Resonance of 6 but relatively average attributes.
They would have Technomancer abilities AND AI abilities.
Technomancer AI's should also have inherent programs regardless if tehy were sprite or technomancer as they are more like inherent abilities then a loaded program. These complex forms would be the forms that the user had active at the time they got trapped.
Technomancer E-Ghosts use BP to buy Logic X2 complex forms as usual per SR4 - And so do sprites.