Rename ignore_unused_variable_warning() to ignore_unused().

Add overloads taking only template parameters for suppressing GCC Wunused-local-typedefs warnings.