Fixup Pull 3501 - Fix @system and missing attributes when typeof(func) is used

Fixup for https://github.com/D-Programming-Language/dmd/pull/3501