Fix for Ruby 2.0.0

First try on fixing #55; this has not been tested yet very much, but the arithmetic example works.

Needs review from someone more versed in Ruby internals.