fix Issue 9722 - optimizer kills GOT to EBX load
Merge pull request #1748 from WalterBright/fix9722

fix Issue 9722 - optimizer kills GOT to EBX load
fix Issue 9712 - IFTI does not support deducing static array types from array literal arguments
fix Issue 9654 - Template function cannot take string by ref T[len]

That should work even if len is TemplateValueParameter.
Bug fix mentioned by Martin Nowak for issue 3652
Fix bugs around ref and CT-boundaries argument

Improve test for issue 9654 and 3652.