Added test for #1043
Fixed #1043 variadic parameter of contravariant type of local class