If the —
(a) court considers that the claim requires —
(i) prolonged examination of documents, or
(ii) scientific or local investigation which cannot conveniently be carried out by the court;
(b) matters in dispute are wholly or mainly a matter of account; or
(c) parties agree,
then subject to rule 40.7, the court may order the claim or any issue or allegation to be tried by a referee.