Collection helper and compiler warning

- ADD: collection helper class with ToArray() and AsArray() methods
- CHG: treat compiler warnings as errors