Improve po2tmx for cPO and fPO

Slight changes to code and tests to ensure that the extraction works for other
PO parsers.