tiny recursive utility to deal with keys/values of deeply nested objects
Commonly re-used logic kept in one library