Additional input validation for $near, $nearSphere, and geoNear.