handling of unknown ids / codenames
fixed missing template error
tiny bugfix for edit_type
Merge branch 'edittypebug'