Make script variables constant.

Fixes #5446