Fix a compatibility issue with the "reserved" parameter.
Make sure reserved parameter is a not a negative value.
Merge pull request #107 from Arkshine/Fix-array-compatibility-issue

Fix a compatibility issue with the "reserved" parameter.