adds the type_object/prototype pattern complete with rspecs and rdocs