Fix wrong partial specializations.

Signed-off-by: Kohei Takahashi <flast@flast.jp>
Fix #10443 completely.

Signed-off-by: Kohei Takahashi <flast@flast.jp>
Merge pull request #24 from Flast/bugfix/invoke

Fix tickets #10443 completely (SFINAE-friendly invoke).