wrote array_getset and scalar_getset and visit_Type

Hi James,

An update which I hope is okay.