Work-item functions return 0 if dim out of range.