Make Ref
work with more than just interface types
#3394
+51
−22
Merged