Fix error in parsing Arguments

Make sure we do not allow trailing commas in arguments.

Fixes #570