Assumes Reference as a Vector and returns a Reference at index index.
Assumes Reference as a Map and returns a Reference for the value at key key.