arrays no longer get flattened in flattenObject