Optimize $indexFor by caching index locations in a weak map

@jwngr 

src/FirebaseArray.js: added a cache of record indices
test/unit/firebase.spec.js: Fix broken test case
test/mocks/mock.utils.js: unused parameter