minor cleanup for preview generation, needed to make tests pass again
(avoid intermediate step of setting multi-dimensional array, see #695)