Fix regarding somevalue snaks in references.

Now a message in the debug log will be printed.