Add setSubtype() method to dEntity that uses reflection to automatically set entity subtype.