Fix issue 1331 by adding a ShortArray class