[WIP] Compound Indexes

Additions for: https://github.com/doctrine/mongodb-odm/pull/812

In-progress, so please don't merge yet. I'm going to use this PR to review/discuss changes, which can later be merged and allow me to merge a single PR on the Doctrine repo.