fix view variables not being set when passing array

is a bug in View::assign and Controller::assignToLayout