Fix boolean bug

There seems to be a bug in that boolean values aren't tested early enough in the value translation. This fixes that.