New: Model::toArray() function.