Fixes #5236: add a bulk-get method for node inventories