Fix up garbage collection for tables.
Move default optimize pass visitor to method on expressions.
Extents are now [ul, lr) based.