Improve iteration speed in Model.

The most common operation in the Model class is iteration over the
submodels, particle systems and lights. To improve performance we'll
keep a vector of these instances and iterate over this.