Don't use va_start() with reference parameters, it's undefined behavior.

Should fix issue #584.