Fixed a but where sref elements were getting incorrect
IDREFs during final transformation.