Fix wrong assertion in bytecode generator module
Simplify bytecode generator code for LogicalExpression rule