Added array protocol declarations.
Fixed single association model saving.