made Ref covariant in its type parameter
Merge pull request #3 from MisterD123/master

made Ref covariant in its type parameter