r10101: move function so that deref-array macro is defined