[core] Use std::size_t for dimension value.
[index] Add default template parameters in the implementation of is_valid. Remove MPL assert