Declare a number of functions as variadic.

Replacement for #553, this time against PHP-5.6.

In the past there there were a number of workarounds used to signify variadic function. Now that we have a syntax for variadics and reflection support, it's time to update those functions.

cc @nikic