Implementation of type code handlers.