Add more unit tests for trailing commas in arrays with comments

Also fix typo.