index: ensure that the indexed getters/setters are set up in the constructor
test: add more tests