Implement a Node => DenseDict serializer (this is the format used by the classifiers)
Delete dead code.