[Fix #1167] Fix handling of multi-line parameters in TrailingComma

Hashes and other items spanning more than one line were not handled
correctly when it came to checking if the closing bracket was on
the same line.
Merge pull request #1168 from jonas054/1167_fix_multiline_method_calls

[Fix #1167] Fix handling of multi-line parameters in TrailingComma