All or any of the issues of fact in the action may be referred upon the written consent of the parties.