Renamed ndim to ndims in NdMapping
When adding key_type using add_dimension check NdMapping is already typed