Dialyzer fixes to play nice with containers and groups

These patches are needed to get clean dialyzer runs across the
projects.