Correct HHVM type checker errors