Added possibility to use multicomponent vectors.