CRAFTERCMS-427
Fixed bugs causing change template to fail for following use cases:
- (content as folder = true) -> (content as folder = false) and vice versa
- (file-name) -> (autofile-name) and vice versa
Additionally fixed bug with content with autofile-name control not respecting content-as-folder configuration (always creating content as folder)