Added ObjectCollection::toKeyIndex($keyColumn).
Added test for ObjectCollection:toKeyIndex() method.
Merge pull request #391 from marcj/main-master

Added ObjectCollection::toKeyIndex($keyColumn).