Added specs to test saving geometry values.
Added support for jruby.