add array access methods to Compound type