refactor JsonRefNode with internal JsonReference