Andrius Velykis - 2014-06-07

Added a workaround in b7e7664d3e0649dfa3c08efc45105fc642c90be6. Now direct loops (ID to itself) are ignored when calculating order of recursive types.

The issue should also be fixed to avoid such UndeclaredAnns being generated altogether..