Bufix on analyzer

In certain use cases analyzer wasn't producing a final moduleinfo.js
file with dependencies in the right order.

In some cases, hierarchies weren't loaded in the right order.

Now this should be fixed, but this is yet to be tested :)