Update the exception type for get_constant_value()
Update the view_op and deep_copy_op registration to the new style.