Applied a temporary assert in case variant_type::get_function_type() is called.