change multinomial return type to be Integer[] (previously RealMatrix)
1. fix examples. 
2. improve syntax highlighting.
Merge branch 'master' into change-multinomial-return-type
remove redundant type checking in semant
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>