mapping object graphs and arrays