Add support for using code constants so they can be applied as default values, in constraint checks, and in other contexts.