Ensure we only print a map as a struct if the keys match