Add BehaviorType class for 2.6+. (#1)