feat(model): auto-cast return of getModelElementById

Auto-cast the return value of getModelElementById() to the desired
subtype of ModelElementInstance.

Makes it possible to write

  Animal a = modelInstance.getModelElementById("a");

instead of

  Animal a = (Animal) modelInstance.getModelElementById("a");