alac: Check channel indexes more completely, fix out of array accesses.