Fix model extension injection semantics

The weaver can't inject instances directly. Therefore
Frontend#getModelExtension() should return a Class object instead of a
ModelExtension instance.