Fixed issue where inversion and updated genome weren't returned from invert_str