Backport of 70f413982 to 5_3_X

This backports a bugfix to 5_3_X to enable correct db-file output in case multiple IOV are used and only large structures were aligned.