Dan Hipschman : widl: Use ref_type to simplify some code.