Adding weak ref for self on nsproxy and nstype
Fix memory leaks on NSCommon