defs: only define ARRAYSIZE when needed