Sync latest compiler pull requests
Merge pull request #3151 from bactrian/sync-prs-1417737601

Sync OCaml compiler PRs