Revert incorrect change getindex -(back to)-> ref
Revert changes to files in src/attic