fix ImmutableArray#++
add primitive check for ClassCastException in ++ on ImmutableArray
Merge pull request #525

fix ImmutableArray#++