Add arity() and arg(int) to Term API

This makes it easier to extract the arguments of a StructureTerm.
3 files changed