Add context for each(). Fix warning in _getKey.