Fernando Alonso says he looks back on his ill-fated season with McLaren in 2007 as an experience that was "good for my career".