fix barchart UDT loading problems.  Fixes #820

The barchart UDT thing seemed to be dependent on the order of class loading; this fixes the problem.