Introduce ConstantSpec::get_value.

I'll need it for cross-origin wrappers as well.