Changed test results according to changes in the C++ library.

The corresponding behavior was modified in revision c1423128.
Compatibility with latest SWIG versions.

We were using a wrong construct into an %extend directive that
was accepted by SWIG up to release 2.0.8, but was rejected in
the latest versions.
Merge pull request #9 from Peter Caspers.

Fixes to experimental Markov functional model.
Additional fixes in this commit:
- fixed C++11-only syntax;
- replaced hard tabs with spaces;
- reordered included headers.