SERVER-12470 SERVER-12475 SERVER-9532 fix multikey index bounds for compound indices and elemMatch

The new query system multikey index bounds behavior now largely matches that of 2.4.
For a detailed description of the rules for building multikey index bounds, see
the long comment atop db/query/planner_access.h.