added reversing function to PGObjectTokenizer