Fixed scoping bug in R.ReactCreateClass.