More faithful version of LiteralImpl.isPlainLiteral.