Remove redundant attributes

Required by: https://github.com/D-Programming-Language/dmd/pull/3696
Note that, the return statements in function body now return `T*`.