Fixed using varargs in combination with C++ reference types, which apparently results in undefined behavior.