sub menus didn't get checked for being active.

Based off the method in ```Menu.php``` I've updated ```Nav``` so it will check if sub menus are active or not.
fix tests
Changed assertions
code style
Minor code style fixes for apidoc
Fixes #2659
Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions.
Update console-migrate.md

Corrected 'class' parameter
Fixed test break.
Merge pull request #2660 from EmilHaukeland/patch-2

Corrected 'class' parameter
Added back some toArray() implementations.
Refactored controller creation process.
Fixes #2661: Added boolean column type support for SQLite
Added advanced app tests to travis
Merge pull request #2652 from Theill11/fix-test-breaks

Update advanced app tests
yii\mongodb\file\ActiveRecord::update() fixed to save the attributes while updating file.
Merge branch 'master' of github.com:yiisoft/yii2
yii\mongodb\file\Collection::ensureMongoId() fixed to suppress exception on invalid _id format.
Note about  embedded documents added to mongodb extension readme
Make code coverage work