Strict null check on the value given to the constructor of Token. I'd forgotten PHP's loose type checking which makes "0" "falsy" for instance.

Removed the special operators "LIKE%" and "%LIKE" and instead check if the value the operator operates on starts or ends with a "%". If so the "%" sign gets moved to the proper side of the "LIKE" operator.