Implemented DefData, ReadData and RestoreData.
Fixed type lookup for when ident matches module name.