lua integration: generalize Objects to RefCounteds
v8 integration: generalize Objects to RefCounteds