add -retainids option to 'gt extractfeat'

Closes #270.