julia 0.3 compat & simpler const generation ( JuliaLang/julia#5276 )