fixed wrong varname in switch case
added test for some GMP functions to run on HHVM