- changed update implementation of spsegment to support TID references
- fixed TIDReferencing issues (wrong encoding of magicBytes)