A number of fixes for the create_vector_dist() function.
Authored by: bugman 2008-12-03
Parent: [r8104]
Child: [r8106]