Get attributes array with getter

I wanted to be able to put in a manipulation layer when setting and getting attributes (for creating aliases for attributes, while keeping the database column names). When accessing the attributes array directly this was not possible since I needed to override `getAttributes()`.

This seems like the appropriate way of accessing the attributes array anyhow.