Add tests for typedef refs and type refs. Ref bug 1082099.

What we had as a type ref test before was really a typedef ref test.

Btw, "Jump to definition" really does jump to the definition--at least of classes--not to the declaration.