Control circuits for tandem pumps or motors