added toArray() function, if object contains it's own toArray() function, call...
added toArray() function, if object contains it's own toArray() function, call it, otherwise issue (array)
added toArray() function, if object contains it's own toArray() function, call it, otherwise issue (array)