Ensure trailing commas in coords doesn't break positioning. Fixes #582