return array as other list function

Hi,

fix list_flavor to return array of hash like other list functions.
Not sure of the impact on other part of Rex.