Rework script context handling of game values