add extraction of template arguments (3.5 only)