Add t/porting/perlfunc.t so that porting tests catch problems with perlfunc