Object flattener helper library