Add deprecation warnings for getindex(::AbstractIndex, ::String)

Fixes #525