fix Position checking

fixes #274
Merge pull request #275 from Garonenur/dw

fix Position checking
unsigned long -> GtUword
Merge pull request #276 from gordon/uword

unsigned long -> GtUword