WIP vectorize changes
vectorize and local decorator tests.
WIP fix vectorize decorator in client.py