Add support for freezing arrays.
Self-review