Fix #2532: Allow AR behaviors to attach other behaviors to Query

This one attmpts to fix #2532: "Allow AR behaviors to attach other behaviors to Query"

I can not see other solution to do so, but changing `yii\base\Component::behaviors()` to be a static.
This allows `ActiveQuery` to browse behaviors declared for `ActiveRecord` searhing for specific ones implementing `ActiveQueryBehaviorInterface`.
This interface enforces behavior to declare method, which should return definition for the `ActiveQuery` specific behavior.

Unit test is attached.

Warning: this PR breaks a BC!