Add hstore_to_jsonb, hstore_to_jsonb_loose functions and cast