fixes to make sure read_attribute works for postrgres arrays, even if we override the reader method