Fix ProjectImpl leak
use robust subResult
init group variables by closure scope
EA-40521: more assertions added