Add support for freezing arrays.