Pass the MultiComponentStateOnSurface by unique_ptr.
Pass the MultiComponentStateOnSurface by unique_ptr. Add non-const overload for getting back the MultiComponent state ptr . Modify clients avoid release and a bit of cloning.
Edited by Christos Anastopoulos