fix issue when setting bool/unicode as the param type
Some fixes when specifying params of type 'bool'