fix previously uninitialized zero sim-id for parent sim

Note that this breaks code generation - see #792.