fix #64
fixes #53, use an internal array indexOf instead
shouldn't have used arrIndexOf for string
add more unit test
small tweak