Fix some Vector method exceptions
Fix some Vector method exceptions

and more cleanup after review comments and linter warnings

lrytz/scala,scala/scala,lrytz/scala,scala/scala,scala/scala,scala/scala,scala/scala,lrytz/scala,lrytz/scala,scala/scala,lrytz/scala,lrytz/scala