Small fixes

Small fixes for some stumbling blocks i found when trying out the library in irb.