Fixed recursion bug in schema source_tree/_resolve_deps