Fix #4252: Do not copy entire Strings Object; pass by reference instead

A fix for issue #4252. The modified files and corresponding templates are the ones mentioned in the issue plus an extra one I found in the Debug Commands extension.