§ 20. No imprisonment for non-payment of costs in certain cases. A person shall not be arrested or imprisoned, for the non-payment of costs, awarded otherwise than by a final judgment, or a final order, made in a special proceeding instituted by state writ, except where an attorney, counselor, or other officer of the court, is ordered to pay costs for misconduct as such, or a witness is ordered to pay costs on an attachment for non-attendance.