adds get_type helper function for getting the T.vartype of Sast expressions