Switch to fixed-length array for callback refs