MODE-2031 Fixed the updating of modified node types on repository start.

The problem consisted in the fact that after the update, super-types were placed after regular types in the list of children of the `jcr:system/jcr:nodeTypes` node and therefore couldn't be found during node type validation which requires a top-down order for super-types/sub-types.