Add dual flag to rows; apply dual when expanding row variables if flag
is set.

Added calculator example.  It seems to type now, but the implementation
of 'offer' is broken, so I don't know if it runs properly. :)