Getting unit tests to work.

* Bump version number to 0.3.0
* Fix unit tests.
* Fix a number of bugs, the most vexing of which was
  an incorrect RWork allocation in PDFactoryDouble.
Split off beam tests, add more tests.

* beam_test.cc split off from model_test.
* Add more tests, including of negative beams, to beam_test
* Update R comparison values for model_test based on IDL values.
* Add more tests, including negative beams, to model_test.
Some bug fixes from comparison to P(D) coverage results.
Fix output of affineExcept messages.
Merge branch 'base' into rfull