-rex fixes, added better exceptions
-errors in rex code always raise a RexError or subclass
-added extensive unittest, tests pure rex, ie no packages involved.