applyNonlinearity takes in a list for args
(#552)