use proper type of SET in conditional
add js testing for emterpreter
fix bad call of getReg
handle boolean not in detectSign, and fix switch on default value
add testcase