Had to add some support to gcc match and simplify language to reduce the size of...

@pinskia@hachyderm.io

Had to add some support to gcc match and simplify language to reduce the size of the code produced. Comparisons are a pain otherwise. Nans and trapping math makes things so much worse.