[KG Integration] Merge multiple types into one query

Also throws IOException for caught JSONExceptions.

Bug: 123034216, Bug: 123034993
Test: manually
Change-Id: Ie30cafe5a0515794ec20ed92fa145a7fd99d5a6e
1 file changed