made GetDataTypeId inline to avoid link error on some VS versions
made MapPointIdToInternalIdx virtual, such that subclasses can override it