Fixed support for functions that accept both vararg/referencee parameters (fixes #17)