Made finalizeWeak# actually work and strengthened weak ptr tests