implement integer-as-index-fn
fix dep version