Use varargs for adding types to JavaWriter.