Changed all type sizes to either vmin/vmax or ems for resizing