Some changes to make parsing of full classes work.

Improved error checking in ASTs (and fixed the interface that as somewhat
broken)