SI-7658 Prevent StackOverflowError in ScalaRunTime.stringOf