clone method
Create a deep copy of this environment (including children and memory).
Implementation
DartBlockEnvironment clone() {
// toJson omits parent pointers (acyclic); fromJson rebuilds parents.
final json = toJson();
return DartBlockEnvironment.fromJson(json);
}