Make the enums IR needs to persist implement a common interface since strategy for encoding them will be the same.  Stop using ordinal and let IRPersistedFile figure it out
Simple error in recursion...Make sure we visit all scopes for instruction lists
Generate an unparseable file but tease out recursion by generating some nonsense :)