Fixed asinstanceof to ignore synthetic methods