1. added spec for int array, real array
2. fixed array sub resolution issue
3. fixed histogram for array values
4. fixed multinomial value type to be ArrayList<Integer>