ubus_common: remove duplicate ARRAY_SIZE and add missing include