Added implementation for array type.

I changed this and got my simple api file with an array in the result working.