fixing a bug trying to use function pointers from lua directly in terra.