Allow encoding of const values.