fix assertion
check type because child expression's type may not be set because of errors
Merge branch 'master' of github.com:rhysd/Dachs

Conflicts:
	src/dachs/scope.cpp