fix for wrong type reported by headerGet

It is a part of changes (rest will be in poldek) to fix poldek's crashes
on subpackages with inherited Group.