Adding support for recursive aliases.

Alias expansion is now a loop. If you define

alias A=B:A
alias B=C:B

then A will expand to C:B:A.

Also added a short section to the manual about this.
fixing problem with previous commit if no aliases are registered
Adding tests for recursive aliases
Adding option --recursive-aliases, adding documentation to man-page and manual
Fixing two GCC warnings
Merge pull request #247 from ecraven/master

Adding support for recursive aliases.
Merge pull request #248 from ecraven/fix-warnings

Fixing two GCC warnings
Adding option --no-aliases to completely disable alias expansion
Merge pull request #249 from ecraven/opt-no-aliases

Adding option --no-aliases to completely disable alias expansion
Adding documentation of options to man-page from manual. Fixing a few minor typos and mistakes.
Merge pull request #250 from ecraven/update-manpage

Adding documentation of options to man-page from manual.
first changes in adding more testable examples to ledger3.texi
Merge pull request #251 from ecraven/update-docs

first changes in adding more testable examples to ledger3.texi

These look good.  Could you put a brief explanation somewhere (not necessarily in ledger3.texi) on how to generate new tests? I should probably know where the command and input id numbers come from, but I don't.
Added support for validation tests to DocTest.py (input:validate and
command:validate)

It is now possible to use @smallexample @c input:validate (and
command:validate) to specify that an example should just be read by
ledger (and checked for errors) or that a ledger command should be
executed (with default input -f sample.dat, if none is specified).

These annotations have been added into ledger3.texi where appropriate.

Running the ledger3.texi test now takes a second or two, but a lot of
the @smallexamples are now automatically tested.
removing two new test cases that fail on travis. cannot reproduce failure
Fixing typos, adding @c input:validate to code examples
Merge commit '4966c7f' into update-docs
Merge pull request #252 from ecraven/update-docs

Added support for validation tests to DocTest.py (input:validate and command:validate)
Fixing typos in documentation
Merge pull request #253 from ecraven/update-docs

Fixing typos in documentation