Make TabulatedFunction::Copy virtual so the appropriate method gets called.

Tests pass for me now (and segfault is gone).