Fixed Util.newInstance method for primitive parameters other than boolean and int