Lazy ref. generalized, unique reference bugfix.