Improved program resetting

The machine now fully reloads the last loaded code. This fixes array &
other code lines values not properly resetting.