Adapt gentable to recent Singular changes

Fixes #22.