fix bugs in InjectorBackedRegistry.first and .all methods

There are some bugs in InjectorBackedRegistry which I noticed while adding tests to SpringBackedRegistry. 

I've added a test to InjectorBackedRegistrySpec that shows the problems.