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

```@clone``` seems unnecessary here, ```@config_template = @config_template.clone``` would work too. 
I'd suggest cloning also the relations with OS and so on, feel free to make use of [deep_clone](https://github.com/moiristo/deep_cloneable) for that.