Nothing in this chapter shall be construed as affecting the laws of this state relating to the criminally insane or insane inmates of penal institutions. Where the term "insane" is used in other statutes of this state its meaning shall be synonymous with mental illness as defined in this chapter.