fixed goog type for opt_writer in generator