Flag entity and FlagAddForm now save the flag type and link type plugins.