HHVM compatibility: func_get_args

All func_get_args() calls have been moved to the top of the methods
because HHVM doesn't keep a copy of the original args for performance
reasons.

See facebook/hiphop-php#1027 for details.
Merge pull request #372 from javer/hhvm-func_get_args

HHVM compatibility: func_get_args