ubus: add array flag support for the hosts method