bus-message: fix calculation of offsets table for arrays
This is similar to the grandparent commit 'fix calculation of offsets table',
except that now the change is for array elements. Same story as before: we need
to make sure that the offsets increase enough taking alignment into account.
While at it, rename 'p' to 'previous' to match similar code in other places.
(cherry picked from commit f88214cf9d66c93f4d22c4c8980de9ee3ff45bab)
Resolves: #1696224
patch_name: 0169-bus-message-fix-calculation-of-offsets-table-for-arr.patch
present_in_specfile: true
location_in_specfile: 169
squash_commits: true