Make toArray support objects with public properties
Merge pull request #6 from smoorhouse11/master

Make toArray support objects with public properties