Fixed various issues deeper in the parsing of list items, added integration test