Change type checking in boxplot and violin