core: Added (partial) support for count() and index() to Tuple
Replace all list(tuple).{index,count}() with tuple.{index,count}()