Fix VectorEncoder usage with OPF

fixes to VectorEncoder, generally to usage with OPF, testing and doc. 
Maybe fixes #727