fixes #1646, #3103 - enable cloning for templates, and add read-only options

Because of #1564 ,which is fixed now.  I'll remove this here.