[[ Bugfix 12722 ]] Make sure plyer is paused when switching from run to edit mode, plus some more tweaks