Fix _tables_used in sim to include tables of columns

Currently duplicates expression parsing by _collect_variables.
We can modularize parsing later when expressions are more complex.