Merge pull request #13867 from mauricio/bug-13861

Fixing issue with activerecord serialization not being able to dump a record after loading it from YAML - fixes #13861

Conflicts:
	activerecord/CHANGELOG.md