Update 'template_list' code to Blender 2.66 changes.
Add flags for compatibility with preview versions.