Fix pluck when columns/tables are reserved words.

Backport #7536 to fix #8968.

Conflicts:

	activerecord/CHANGELOG.md
	activerecord/lib/active_record/relation/calculations.rb
Merge pull request #9043 from senny/backport_7536

Backport: Fix pluck when columns/tables are reserved words.