Added type-checking for the inline C methods in bench.rb.