It is the duty of all courts to encourage the settlement of controversies pending before them by a reference thereof to arbitrators chosen by the parties or their attorneys and, on motion of the parties, must make such order and continue the case for award.