As pointed out by @mcabbott in #564, `vec(::Matrix)` is not free. Neither is `reshape` for that matter. He suggested directly using `ReshapedArray`