loop over tuple fix
bits type lint check
array guesstype and misc fixes