Added method Layer.RemoveAll, Primitivies.RemoveAll