Make sure logicX takes an Expression

As mentioned in https://github.com/Happyr/Doctrine-Specification/issues/59#issuecomment-56000714