Allow plugins to define the same flexible fields if they are of the same type #1059

Should close #1059.