public void register(DataType type) {
        type.register(this); // Recursively walk through all nested types and call registerSingleType for each one
    }
Register a data type of any sort, including document types.
@param type The datatype to register
TODO Give unique ids to document types
document/src/main/java/com/yahoo/document/DocumentTypeManager.java