Handle list and dict of resource references

Add new model field types for list and dict of resource references. Refactor Composer to handle these new field types.