fixed serialisation error when persisting TGT since keySet returns non-s...

...erializable view - create a copy of the returned set view.