Fix 'auto auto' and 'ref ref' appearing in function signatures