Exposing immutable copies to accessors on mutable internal structures