added Scope for local PROTECT/UNPROTECT alternative using the scope of the c++ object
added Scope for local PROTECT/UNPROTECT alternative using the scope of the c++ object
using Scoped<SEXP> instead of PROTECT/UNPROTECT
various fixes
various fixes