Support trailing commas in lists and maps.

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