Fixes ReferentialText#toPublishables to convert the last bit of text into a paragraph as well.
Forces the references in ReferentialText#toPublishables to be outside the paragraph tags.
Fixes last bit of text to be wrapped in paragraph when it's immediately preceded by a reference in ReferentialText.
Merge branch 'release/2.2'