Fix bug LT-15317 LiftExport fails with '&'

* Now in a multi paragraph custom field the contents should
  be escaped properly when written to LIFT xml.
* There is a test proving the fix.
* Fix several intermittent test failures

Change-Id: I840cbf35dc1fa35e0c5899035e82c9197694bda6