Added isConstant method

Added the isConstant method to SAGEInterface and SAGEExpr. The method
already existed in the runtime library.