Refactoring

This does some bug fixing, refactoring and extends the specs. Note that before the specs depended on `hstore version 1.1` to be installed to test base types handling, etc. I propose having a `dumbo_sample` extension that defines the types needed for testing and that gets installed/uninstalled `around(:each)`