added support to handle correctly friend ids list

necessary with stringify_friend_ids param setted to true