added .index() and made 0d arrays more consistent