issue #5932: add bindings for cpSegmentQuery and cp.Space.prototype.segmentQueryFirst