[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