fix check for argument types on func_scope::operator==()