avoid problems for rounding when using odd-sized arrays
(#529)