Added support for clearing arrays in constructors.