traits defauts are strings not object

fix #4299

Was actually really easy to fix as all the logic was already here, so I guess this was just a typo.