Add regression tests for multiline global name lists. Fixes gh-1808