Sort out the transposes in sound file reading and plotting

Also make operator[var] fall back to operator[int] if it's passed a var that
can be interpretted as int.  This saves some casting at higher levels.