Fall back to group names when printing instances

Fixes TOOLS-283