Fix two issues with the projection inliner

See test cases for more details.

Signed-off-by: Jakub Wieczorek <jakub@neotechnology.com>
Use node/rel by ID leaf plans for `id(n) IN {param}`