Adding listNodesByIds across the board. (1.6.x)

corresponds to issue #1502

cc @abayer