Specific method for `ref` for DataArrays to improve speed (#186).
Tweaks to the specific method.