Improved leakcheck so that all syntax features are tested.