add missing nearestPointQuery & segmentQuery for cp.Shape

issue #1048