fix literal emission in the emulators
fix addBindings and computeMemPorts