added errorCollector and some cleanup
Merge branch 'master' of https://github.com/TLeth/DartTypeInference