That's right. It's counts toward the ground game because it's a 100% grounded play, not because of the personel or playcall, and asking the stat counters to interpret personel and playcall is somewhat impractical.
On the original topic of Martinez's stat line (Long pass of 32 yards, but total yardage of 22 yards on 7/15 passing), it's crazy that that yardage *isn't* including sacks. 1 pass went for 32. 14 passes went for -10.
He was sacked for 24 yards beyond that for an air/ground contribution of -2.