Fixes compatibility with HHVM

The Reflection API in HHVM is now stable enough to be used. This PR removes ugly hacks that were causing all but nice bugs with scalar type hints.