Fixed the detection on unknown class typehints on HHVM

This fix should also allow supporting HHVM scalar typehints when they are
used, thus keeping the signature compatible.