Fixes for Julia 0.4 for methods optimize and diagnose.
Merge branch 'master' of github.com:goedman/Stan.jl