Register the new Primary type.
Allow retrieving the id of a model.