ApplyMappingMatrix: convert old pointer arithmetic in template class from SCIRun4