added support for Array of Objects as a data source. 

(previously only 2d Arrays and flat Arrays were supported)