Added support for using callables as "ActiveQuery::indexBy".