Closes #1568: since "centered" directly contains text children, it should be a TextElement.

--HG--
branch : stable
extra : amend_source : 46a8c66da10b88f62e004c0d7a69f4f94f6f6264
merge with stable