What is this used for?  It would seem better to make the objects have well-named constructors that respond well to `instanceof`, rather than a `name` attribute.  

Does this belong in this PR?  Does JSONSchema depend on it?