Rewritten for new 'typed' approach to uniform arrays.