Correctly handle nested lists in the motion PDF

See #1217
Add tests for motion PDF and update changelog file
Merge pull request #1237 from rolandgeider/stable/1.5.x

Handle nested lists in the motion PDF without error.