Describe the bug
When the support for nested variable OCCURS was introduced in #239 the changes were made only in variable record reader. So when the hierarchical reader is used to reconstruct hierarchical records from multiple segments, nested OCCURS won't be read properly.
To Reproduce
Try to load hierarchical data with records having nested OCCURS.
Expected behaviour
Nested OCCURS should work with hierarchical data as well.