Adds .resolveInvisible() to some queries including ToolPageContext#findOrReserve.

This fixes the bug where invisible referenced objects are removed on validation errors (continuation of edf1146).