A court may, in proceedings under any of sections 30, 34, 36 and 37, make such order as it thinks fit as to the costs of the proceedings including, in the case of proceedings removed under section 41 or proceedings transferred under section 42, the costs of the proceedings before removal or transfer and may assess the whole or any part of any costs.