Some refactoring. Renamed create to resolve, reg to register_type. Metainformation has got just one key now.