Renamed and re-encapsulated MemoryObject and MemorySegment with proper constructors and setters