Filled out a lot more QTNode implementation and tests.

Also got rid of global QTNode dimensions lookup table due to
segmentation fault problems that I didn't want to deal with right now.