Can you whittle this down to the smallest reproducer and post a stand-alone synthetic testcase with sample input data that fails?
If the goal is simulating "exported arrays", there are other methods that would probably work out better. -- Dan Douglas