Improve how dummy parameters are passed to static trait methods.