Index SplObjectStorage by index instead of by hash.

This change several failing tests for the symfony framework. https://github.com/facebook/hhvm/issues/1757