Added possibility to add elements to lists and arrays.