array: add maps for nested array
array: more trimming functions