Fixes following some changes to yii2 toArray()