R: fix attribute bracketing bug (#533).

Apparently, returning an object from .Call()
does not make a copy of it in R.