Added possible bugfix of ActiveRow::toArray method