Simplified variadic metafunction is_same.