make sure staged function static parameters are bound in the right order (ref #8505)