Fix HasAny() enum helper to ease migration to .Net 4.0
Mark TreeEntryTargetType.Tag as obsolete