fix codegen bug in immutable types containing references. fixes #2490
restore immutability of Rational
Merge branch 'master' of github.com:JuliaLang/julia