Rewrite RangedPtr's constructor accepting a C-style array in C++, no bug, rs=Waldo

This will let the compiler correctly deduce N without making the
caller explicitly pass it in.