Update Control.Monad.ST.* for Safe Haskell as now they're safe by default
Update Foreign.* for Safe Haskell now that they're safe by default
Improve Safe Haskell bounds for changes to base over time
Be consistent with placement of Safe Haskell mode at top of file