added getType() to Expressions, partially implemented