Fix prototype-in-instance bug for Unit data
(A Unit instance was being passed into a Unit constructor, causing
prototype fields to attach to an instance, wasting storage space.)