Fix a crash at the comparison with a primitive
patcher: Fix some issues with the patcher failing to find initialization begin

More to find...
writer: crash on an invalid operator instead of writing some garbage
writer: put some explicit parentheses for logical expressions
Add basic logical expressions unwrapping
primitive.lua: Add more test cases for logical expressions