Fix issue #5309: ec2_group: rules can't reference containing group

Per discussion in https://groups.google.com/forum/#!topic/ansible-devel/WE0ckSTdjFI .