fix #1083 by allowing dynamic named arg declarations