Looks like we can't use .NET primitive types because of the missing APIs. Examples: * string.replace(text1, text2) → string.Replace(text1, text2) * int.valueOf("123") → int.Parse("123") * etc. I suggest that we emit String, Integer and so on — the mockable types defined in Apex.dll.