bugfix: was returning the wrong shape kernel matrix when a kernel hyperparam was invalid