* luci/libs: util: improve table handling and support mixed tables in serialize_data()