6998063: new Scope impl to fix Scope performance issuesReviewed-by: jjgContributed-by: per.bothner@oracle.com