Add ability to switch between array and object type.
Update version.