[ALOY-1148] Update model template code for 1_6_X

https://jira.appcelerator.org/browse/ALOY-1148