add guard for speed in firefox's basecompiler engine

V8 *should* pick up on these guards that provide type guesswork for
maths.