Any bond required to be given in any matter, where it is not prescribed to whom it shall be made payable, may be made payable to the state.