ast: mozilla visitor generator improvements