fix(util/Text): ensure text is visible during layout

This fixes a bug that causes Firefox and other browsers to fail
to retrieve the BBox of text if the text is hidden.

The workaround is to attach the text to use for layouting on the
document element.
chore(project): release v0.5.1