This patch cleans up the code for the attribute arrays in decorators.
In terms of API changes it adds a method to get the ith residue from a
protein or chain or nucleotide. It also now enforces the create/cast
distinction with bonds, bonded and hierarchy nodes (previously any
node was a hierarchy node without having create cast on it).