A person who is charged with contempt of court not committed in the presence of the court, where the act or thing so charged as a contempt is of such nature as to constitute also a criminal offense under a statute of the United States or a law of this state, has a right to jury trial.