Fixed a bug in the map_named_data_type method.