[vector-api] Miscellaneous fixes for hosted examples

This PR includes a few fixes that allow the `vector-api` examples to run in hosted mode.