Added static asserts for editor, fixed compilation of a template