Ported 'NonReadonlyReferenceInGetHashCodeIssue'.
Merge pull request #423 from TheCommieDuck/non-readonly

Ported 'NonReadonlyReferenceInGetHashCodeIssue'.