OOIION-1728: fix array initialization in construction of deployment extension resource

fix array initialization in construction of deployment extension resource, add test to verify that there are no duplicates in lists.

@mmisinger please review
@wbollenbacher please review