Added selectArray cache to zophTable

The SA cache was missing from zophTable and the call to build it
referred to a wrong function name, causing an error when autocomplete is
switched off.

Also added a simple testcase to test this in the future

fixes #45
Merge branch 'issue#45'