Recursively process values in object