_.chain(T[]).keys() should be a Chain<string> not Chain<T>