std: make vec!() macro handle a trailing comma

Fixes #12910.