Fix pseudoasm crash on a multiline string
Add more complex logical cases to primitive.lua