This may look odd on first contact, but it is clearly documented:
https://www.mongodb.com/docs/manual/geospatial-queries/
MongoDB uses libbson which should clearly preserve the type in the queries. If the client library wrapper goofs the syntax it is not related to the server core.
Try looking at the raw record in the db shell... ;-)