Change Composition dictionary to Composition interface

A dictionary cannot have variable-length array.