oCaster is also uninitialized here.  It turns out that no implementation of CanHavePlayerPortal actually checks this, but it's still wrong.  Want to take a stab at fixing this too?

Your other changes look fine.