Patches for issues 29 and 30

[link to view issues 29 and 30](https://github.com/SciRuby/sciruby/issues/created_by/thisMagpie?state=open)