Collection object transform function is given a collection object as well.

See meteor/meteor#1213
Added tests.
Added documentation.