Enable mock objects to be assigned a blessed type which is returned when ref() is called on it