Section 18. This chapter shall not affect the power of arbitrators or referees to award costs; nor the power of a court to require costs to be paid by either party as the condition of an amendment, continuance or other order which is passed upon his motion, or to withhold and refuse costs on like occasions.