adds the ability to store attachment meta data as arrays and adds unit tests