Make sure that if Type::ID as shard key, convert to MongoId if value matches the pattern