Fixed an issue with transformation of gradients of vector-valued bases.