n.b.: { $__loc__: "foo" } is still not allowed. $__loc__ cannot be overwritten, and it is always an object. Using { $x: "foo" } where $x is not a string is an error, so there is not much of a point in supporting that.