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'.
Merge pull request #1002 from siad007/patch-2

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