only update array's bounds if contents changed