The `.compact` should probably be moved into `ensure_array`.