Fixes for raw simulator.
Fixes for raw simulator.

outputs must be allocated each cycle for waveterm to work.
rework scheduling of tasks updates a litle to make internal ports
consistent

ujamjar/hardcaml