Fix comparison of Literal with non-literal