update halCountedPtr const specialization to store non_const counter internally.  this avoids reinterpret cast and hopefully fixes weird error, at least for now