Fixed some stuff in hack branch

Fixed some fatal issues in hack lang.
Explained [here](https://github.com/facebook/xhp/issues/78#issuecomment-58127888)