Wip: get rid of ARRAYLEN macro