BUG: Fixes gh-2208, alignment in subarrays
Added tests for fix in alignment of subarrays, gh-2208
Merge pull request #4473 from Sankarshan-Mudkavi/fix-gh-2208

BUG: Fixes gh-2208, alignment in subarrays