Adding support for arrays

I was needing this to work with arrays, (and arrays of objects) so I figured I would share. :)