Add a constructor for DataRefImpl and remove excess initialization.