add type for every register (some problem with Array type)