bug fixes from my refactoring of the nexson_validator that were not caught by the tests. Need more tests...