SERVER-13540 take CRS into account for output distances as well as input
(cherry picked from commit 132a84108f529b075c3777e5bb55ac77c52df165)
SERVER-13503 disallow $where under $elemMatch value
(cherry picked from commit 5aac10481a602c2ca3ce1d24a0c97e3602e33814)
Merge remote-tracking branch 'upstream/v2.6' into v2.6