Change @AssociatedResources to contain an array of types.
Fix handling of @AssociatedResources