deepKeys: treat empty object as a leaf node

prior to this, that test case was returning an empty array