Redesigned the model looping in the atom_loop() and base_vectors() API methods to fix a bug.
The models are now looped over in numerical order, rather than the order they were loaded or
created. This reverts to the original behaviour of the main line.