Add switch dim support for int parameters too