update Term.classify_args() to support 'mode' attribute
update Term to support arg_shapes and geometries attributes