Moment of inertia and dynamical rotational response of a supersolid dipolar gas