Fix runtime and RObject.

Signed-off-by: GeissT <geisst-au@hotmail.com>
Patch for failing runtime test submitted by macournoyer@gmail.com