Handle arrays properly.
Merge pull request #2 from ejholmes/handle-arrays

Handle arrays properly.