Doc and specs for AssociativeArray

Also switch to readonly properties instead of get functions.