fix phase offsets for sequence extraction

This PR addresses bug report #447 which deals with the functions in `extract_feature_sequence.c` not correctly handling some cases in which the first phase of a CDS group is not zero. This was a bug as in the problematic version the phases of the first or last children of a feature node were considered, but not checked for whether they have the correct type.