Clean up errors in implicitCastTo refactoring not caught by the C++ compiler

Of course compiling as D caught these.