Test TypeError in #escape_value.