Move rightVecProd to Encoder from SparseObjectMatrix, more clean up