adds rdocs for type_object/prototype