Roundtrip {{#tag:ref|..}} properly in editMode

* See example below that clarifies the problem before this patch
-------------------
$ echo "{{#tag:ref|foo}} {{echo|<references />}}" | node parse --extensions ref,references --wt2wt --editMode true
<ref>foo</ref> <references />
-------------------

* The problem is that references are generated after dom fragments
  are unpacked in the DOM which lost the mw:Transclusion typeof and
  data-mw that had been set on the ref and references tags.

* This is a quick fix to prevent some dirty diffs with #tag:ref being
  reported on en-wp. Longer term, we do have a plan to use DOMFragment
  encapsulation for refs and references as well and splitting up
  references processing differently than is being done currently.

Change-Id: I4186cae93b9882d367c7d4efecc092607fe17c61
Merge "Roundtrip {{#tag:ref|..}} properly in editMode"