Make Ref
work with more than just interface types
#3394
Merged
Ref
work with more than just interface types
#3394