not complaining but seeking to understand how the Nim compiler can be this
intelligent

case myvar.kind:

Error: not all cases are covered; missing: {JNull, JBool, JInt, JFloat, JString}