Filter out meaningless text nodes from unit tests

Some unit tests compare an XML snippet before and after the execution of a
set of operations. For this comparison to pass all the text nodes had to
be exactly the same even if they were not contained in an ODF paragraph.

This imposed a limitation on the tests as they could not have any
whitespace between node structures that were compared in the test files.
Having whitespace is useful to format the test XML data so that it is more
human readable/editable.

This commit filters out any text nodes not contained by an ODF paragraph
so that any test comparisons won't be affected by these text nodes.
Merge pull request #799 from satsuper/unittest-node-filtering

Filter out meaningless text nodes from unit tests
Explain the reasons for the different versions of the compiled code.