Use the number of selected ways/relations in full calls

This is a slight optimization for queries against deleted nodes
as it avoids a select, but it is a significant improvement for
backends like pgsnapshot with no history because now no queries are
needed to check for non-existent ways

Passes all tests. Also replaces some tabs with spaces.