Before this fix the renderer was not able to save the templates and types in the correct way. It still needs some cleanup, but it works now.