When adding key_type using add_dimension check NdMapping is already typed