added switch duration in editor
fixed tilelayers not saving switch invert flag
fixed switches disappear when decreasing switch group 1
fixed switch group selector not going below 1