SERVER-10471 multikey correctness, fix compound idxs, a few bug fixes