Add variable type checks to test-BarPlotCat.R and BarPlotCat.R

1 job for dev-bar_plots_probs
in 8 minutes and 4 seconds, using 0 compute credits, and was queued for 4 seconds