Assign and List directive fixes and tests

You may well be right, but I fixed only the indentation here. I know, I should better have done that as a separate commit to make that clear. I can add this to my TODO and I hope that this will not block the PR as a whole?