Add Sync for script values.

Hidden behind a default-off preference.

Refs #1573