Fix Issue 6708 - immutable ref implicit cast to const ref
Merge pull request #1496 from yebblies/issue6708

Fix Issue 6708 - immutable ref implicit cast to const ref