Added support for ref type hash tables.

This reuses the hash table implementation for objects (and the
associated tests). For efficiency reasons, iterator implementations
are currently adapted rather than calling the TTable code.
Merge pull request #1177 from rbehrends/reftables

Added support for ref type hash tables.