mesa: add _mesa_program_state_value_size() helper