In proceedings under section 38 or 41 the court may on the application of any party to the proceedings or of its own motion—
(a) determine any question of fact arising (including questions of title) in the proceedings or give directions as to how such questions shall be determined; and
(b) direct that such inquiries be made and such accounts be taken as may in the circumstances be necessary for the purpose of ascertaining and adjusting the rights of the parties.