toImmVector returns an ImmVector, not a Vector

Closes #402