allow to switch on or off weak referencing
Authored by: thibautd 2015-04-28
Parent: [r32855]
Child: [r32857]