Fixed bug with nthIndexOf() where it didn't return the index correctly.