Allow Sandbox to control integer preferences.

This nicely complements the existing ability for the sandbox to toggle booleans.