Adequate to ugdk's text module.
Move memory.i to UGDK.
Update ugdk so unique_ptr args are supported by script.