Commits a datatype. See the HDF5 documentation for more detailed descriptions on what ``committed'' means.
Arguments:
loc_id: Where should the datatype be placed.
name: What should the datatype be called.
type_id: The hid_t reference to the datatype.
Returns a negative value upon failure, otherwise the operation was successful.