Add some optional trailing commas to patterns

Minor fixes to patterns to allow for trailing commas in arguments.