class-gen: Use a simple hash table instead of NPWValue