Start allowing large arrays

Merged Alexander van Heukelum (TriOpSys) requested to merge updates into master

This allows ensembles of size up to 999. This necessitates using the medium memory model on x86 (-mcmodel=medium).