Bug 863069 - Part 3: Allow limited type coercion in moz.build sandbox; r=ted

We now differentiate between the stored and incoming types on global
variables. If an incoming type is not the stored type but is an allowed
type, we construct the stored type from the incoming value.
Bug 863069 - Part 4: More sorting of existing lists; r=ted