codegen: implement parametrized list() on collections

Change-Id: Ifc071953068812a652fb63fc25ee8c891d3c0bf7
Signed-off-by: Michael Pasternak <mpastern@redhat.com>