fixed bug in loop and type check
Merge branch 'master' of https://github.com/peterxu422/PLTCompiler