First version of weak_ref. Contains the necessary to make it work.

Signed-off-by: Silver Phoenix <silver.phoenix99@gmail.com>