Fix #54 - prevent crash when param has array with max length