added "isConst" and "getType" functions to Expression classes