Move to dictionary for first pass on model topologies.

Do not write pickled InferEM instances to save compute time and lots of
disk space.