added unit test for operator_to_vector failure reported in #217
fixed bug in operator_to_vector / vector_to_operator
new fix for #237
Merge pull request #240 from jrjohansson/fix-issue-237

Fix issue #237