Dot-notation Object walk using Array.reduce