Slim Query/Table Table: manage variables assignment in VariableStore

This is idential to pull request 525.
Only one line is different but needs no change in the protocol. Just
additional library functions.