Changed ConstantPool from Array to list.

This is to make future modifications possible.