Currently, the RepositoryNodeTypeManager.registerNodeTypes(...) methods require that the supplied node types are ordered such that referenced types appear before types that use/reference other types. This can complicate the definition of the node types, and should be relaxed so that the order of the node types (within a batch of node types being registered).