fixed scala compiler error because of classOf
json tree traverser
integrated traverser into reference resolver
detecting cyclic dependencies and reference errors.
test for invalid ref