Fixes GH-297.

Also fixes issue similar for GH-296 for basic elements (that is, that associations) of DynamicDictionaryNode.
Tests for inner elements inline ordering problem.
Need for aliasing is checked deep in subtree.
Not using non-local return.
Merge pull request #311 from herby/inner-alias-inline-ordering

Inner alias inline ordering problem.