Fix bugs related to the new Vector and Rectangle objects.