.length for staticlly typed arrays and fixup .length-type for Slices

simple addtion. 
works as expected.
Why don't you generate the integer literal and cast it ?