Fix exception at location.real_column in the JSON formatter

We have defined Rubocop::Cop::Location#real_column, but most cases the
location attribute value of Offence is actually Parser::Source::Range
and it does not respond to #real_column.
Merge pull request #311 from yujinakayama/fix-json-formatter

Fix exception at location.real_column in the JSON formatter