Support for object when an array and also fix for sending PZP contents towards PZH

Jira Issue: WP-1034