Query::queryScalar wasn't making SELECT DISTINCT queries subqueries
Fix for logic Query::queryScalar uses to check for SELECT DISTINCT
Added support for reading page size from query parameters by `Pagination`
Merge branch 'master' of git://github.com/yiisoft/yii2
Merge pull request #2581 from jom/query-scalar-fix

SELECT DISTINCT queries made subqueries in Query::queryScalar