Added #downto to integer and fixed bugs of #upto.