Fix issue 10568 CTFE rejects function pointer safety casts

We need to check for function pointer covariance
Merge pull request #2319 from donc/ctfeCastSafety

Fix issue 10568 CTFE rejects function pointer safety casts