Fix pluck when columns/tables are reserved words.

Backport #7536 to fix #8968.

Conflicts:

	activerecord/CHANGELOG.md
	activerecord/lib/active_record/relation/calculations.rb

The code was slightly different than the one on master but I think its safe to apply this backport.