SERVER-14668 Move getIndexSizeForCollection to be a method on Collection