Changes due to the flattenInternal EmbeddedMaterial should have a embedded internal field type instead of tweaking the constructors of materials