boxplotResidualBatch added checks for the correct type of argument