langref: convert to unmanaged `ArrayList` in example