On the dimension theory of polynomial rings over pullbacks