Delete core.NodeBase.__repr__ (prevented easy debugging)
Reduced the number of forward declaration output by OrderedTypeContainer
Add better support for forward declaration output: only output when necessary, using a modified topological sort algorithm
Fix modified topological sort algorithm
Improve number of forward type declarations needed in OrderedTypeContainer