vppinfra: fix the array mask function