Use wrapper if data is encountered for first time on "set()"

Fixes #1285