Allow specifying security groups via direct reference

I.e.

  securityGroups = [ resources.ec2SecurityGroups.foo ];

instead of

  securityGroups = [ resources.ec2SecurityGroups.foo.name ];
Update example