Fixed wrong errorcode if return annotation has a type of 'type'

Errorcode should be PPC:ERR-50017 instead of PPC:ERR-50004 if return-type is 'type'.