Added parsing of typeparam nodes.
Code cleanup.