2-9-501. Application -- bonds excepted. The provisions of this part apply to the official bond of any executor, administrator, or guardian or to the bond or undertaking of any person when by law a bond or undertaking is required, except county, town, or township officers and state officers and employees.