fixed my changes in Statement::Ptr::Ptr to match code from upstream