[CDO] Fix model import

The model import suffers from a number of problems, both performance
and stability. This patch addresses them.

Change-Id: I36c6ac9dd6c64d5770208ac06d29cdd39bc13772
Signed-off-by: Eike Stepper <stepper@esc-net.de>
11 files changed