Re-write PcsxrMemoryObject in Swift.