net/ice/base: use macro to get variable size array length