Fix template export string to match new robust AI casting rules
