fix indexin for new Dict syntax
add test for indexin
Merge pull request #8622 from JuliaLang/jh/fix_indexin

fix indexin for new Dict syntax