Baer-Kaplansky classes of vector spaces and modules determined by numerical invariants