Add utility metafunction is_core_shape_of_dim.
Restructure the arg_to_core_shape_data builtin data converter. Now it also gets the CoreShape type in order to be able to select the appropriate converter implementation.