ec2_group: Allow group name usage to work correctly in VPC.

Previously, the `groups` dictionary may contain mixed data from various VPC,
since multiple VPC can have security groups sharing the same name.
ec2: Allow provisioning VPC instance with group name to work correctly.

Previously, the first group with matching name was taken, and it only worked
by chance, since multiple VPC can have security groups sharing the same name.