add lindex method to allow getting an encoded item from a list without removing it from the array.