Make sure the Hub<T> only works with reference types.