Added tie size for arrays; made compound_tie() return compound.

Desc:
    added tie size for dynamic arrays (in serialization, dynamic
    size must be known).

compound:
    tidy;
    made compound_tie() return ref to compound for chaining/serialization.