Added a raw memory cleanup method for Replicable class