Fixes #9049: switch order of gradient mixin params to avoid problems for upgraders