Added generic get and put of arrays and lists