Added unit tests to dynamicGraphics and fastPlot

Contains two commits which introduce unit tests to meet coverage requirements for dynamicGraphics and fastPlotViews. Includes some clean up of main code for fastPlot in support of these goals.