Fixed crashing bug in GTWNTriplesSerializer when serializing invalid unicode.
Pass the primary query planner object to sub-planners in an options slot.
Removed unused debugging code.