Support trailing commas in lists and maps.

This also adds the syntax (value,) for creating a singleton list.

Closes #917
Merge pull request #964 from nex3/trailing-comma

Support trailing commas in lists and maps.