Optimize count for arrays and strings, fix bug in nth incorrect
handling of IIndexed on native types