This required restructuring array types to lookup oid of element instead of hard-coding it due to hstore having a variable oid.