Make it easier to register other types of errors as assertion failures, and treat Node's AssertionError as such.