Fix Issue 10608 - Better diagnostic for RefCounted assert.
Merge pull request #1586 from AndrejMitrovic/Fix10608

Issue 10608 - Better diagnostic for RefCounted assert.