Fix empty list item edge case
I was pretty stuck for a while with this and I started explaining here what was going wrong, but then the rubber-ducking made me find a large bug. Still something wrong with the second new test (still missing one listitem from the final ast I think).
Might spend time finishing this before the meeting, otherwise it might get solved by just talking about it at the meeting.
Edited by Powersource