Fixes issue with ConstantType.is_valid_value
Updates examples