Added support for get/set behavior in arrays and lists in collections.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>