WELD-1498 ClassCastException when proxied class returns this

Check return type of proxied method