inherited types use the same id sequence, deep clone for IgnoredTypes, some bug fixes