Add workaround for jython's issue in handling varargs