IB/ipath: Replace open-coded ARRAY_SIZE with macro