Expose field attribute

I was interested in a different way to serialise the BitArray (e.g. as JSON) instead of as a sequence. For that I needed access to the field and I thought it might be useful to others too.