With statement behaviour for objects