Change warning message wording to reflect the behavior in this branch.
Add guards against errors when nested groups are involved.