Fixed SceneCache from IndexedIO bug, added a test