Remove operator[] that was used only in tests.