Change {Pid, ProcessRef} to {ProcessRef, Pid} in list message funs
Fix replace_state in genie_basic