fix exported iota following unexported iotas by moving the exported check out of
newValueSpec