Added tests for fix in alignment of subarrays, gh-2208