Introduce a custom DOMRefCell<T>

#3050