fix #1789 (binding to static params during generic proc sigmatch)