Use automatic indices on subqueries of the FROM clause when appropriate.
Simplifications to the NGQP.  Add the queryplantest makefile target.  Add
testcase() macros in the NGQP.
Add more testcase() macros.  Fix a memory leak following OOM in the
virtual table analysis logic.
Remove some redundant and unreachable code.