Fixed unsigned rational and signed rational extraction

This affects in particulars GPS tags where all components had the same value.