gbm: replace NULL sentinel with explicit ARRAY_SIZE()