refactor(driver-compat) add getObjectClass to DBCollection
chore(driver-compat) add deprecated annotation to DuplicateKey and suppress deprecation warning in MongoExceptions class
test(driver-compat) move 'shouldSupportIndexOptions' to spec class