Changed Vector to our Vector type in libraries.
General codestyle cleanup in affected areas.
Ref #157