All those rights and obligations which would be created were the bond of any such officer executed under any other law are hereby declared to exist and be of the same force where such bond is executed in the foregoing form.