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