do proper expansion of even-sized arrays
(#529)