Added some unit tests of numberCountsDoubleLogNormal getR (vector),
beam histogramming.  Fix bug found by this test.

* Add histogram test for 1D beam
* Add getR test for numberCountsDoubleLogNormal, array version
* Fix bug found for unweighted beam getR (vector) where RWorkValid wasn't
  set to avoid out of range values.
Added some more unit tests, formatting fixes.

* Unit tests for beam & doublebeam copy constructor.
* Format fixes for various other files.