Item statements now support renamed items, fixed r-direction broken

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>