Returns whether this expression is constant, i.e. whether this expression only consists of literals and other constants.