The fees of referees shall be fixed by the court, but the parties may agree in writing upon any other rate of compensation and thereupon such rate shall be allowed. [Formerly 21.510]