Fix empty functions
Allow index of different types.
Allow array [char] of integer
Calculate range from typename.