adding currying over function position, and a regression test to make sure we don't lose this in the future