Added additional type checks for some C benchmark functions.