Do not output zero location which is no-op since it is relative.
Output "empty" groups to preserve hierarchy.