Fix Function Application Code Generation Bug for >=10 Arguments

fixes #258.