Fix issue 1331 by adding a ShortArray class
Merge pull request #305 from 0xg/master

Fix issue 1331 by adding a ShortArray class