Handle object in array

For #5