Issue 12622 - Purity, @safe not checked for pointers to functions

https://issues.dlang.org/show_bug.cgi?id=12622