implemented getdatatype and getattributearray.