introduce tyFromExpr; fixes #618
progress towards fixing tgenericshardcases
fix bootstrapping on windows