add Ref#inspect and Ref#type