Added a range of test for the Pixel classes when using dynamic pixels.
Added some sanity checks to the DynamicLayout::addChannels.