Fixed memory leaks. Put back 'wig2jahmm()' in Rjahmm.