Performance improvements for $collection.bind, thanks to @zefei