Switch to get/set methods

This pull request tries to make the full transition over to `getindex` and `setindex!`. It would be great if someone could try it out and confirm that it works.