improve default element-map to handle 0-dimensional arrays
pprint better errors