support: fix collection bug in support API

Use the hash and equal function provided by the V and L modules to construct a Hashtbl. The previous version just used the polymorphic Hashtbl module which may use an equal function that does not agree with the functions provided in the V and L modules.