Corrected duplicate model registering.

Now a dictionary is used internally instead of a list. The key for
each model is it's name.