array accessors, fixes #6