spec: fix superclass in Spec::TaskContext#to_h