Add checkincludebuildconfig.sh test script
Remove unnecessary forward declarations
Include result type headers in parser type headers

For consistency with other headers. Maybe we need coding style
guidelines...
Add BasicEnvironmentStub class

There are many (almost same) copies of EnvironmentStub classes in
several test case files. There should be only one of them.