Set 'alllow_nonref' option for JSON encoder.

W::CL should not throw exception when it encounters values it cannot
represent in JSON.