Fix for #1894: npe at runtime for named args invocation of curried generic function
Test for #1894: npe at runtime for named args invocation of curried generic function