Added elements method to Accessor so one can generate methods for generic collections of elements