[Fix #1118] Never write invalid ruby to file

Handle invalid syntax the same way as clobbering, i.e., run
autocorrect in one cop at a time and reparse between each.
Add checking of right bracket in IndentArray and IndentHash

Also support auto-correct.
Make source pass inspection by updated IndentArray cop
Merge pull request #1128 from jonas054/fix_1118

Don't destroy code and do check right brackets