WELD-1782 Don't wrap resource producer field if the actual type is
assignable to Serializable