Added example of objectOf usage in documentation.

This is to go along with #1611. Tests were already broken when I checked out master and npm installed, but judging by one of the latest PRs this is already being taken care of. Besides, this modifies two lines of documentation so it's totally unrelated.

Thank you!