Fix #1091: Improve genPrimitiveJSRepeatedParam for arrays of primitive types.
Merge pull request #1096 from sjrd/revisit-genprimitivejsrepeatedparam

Fix #1091: Improve genPrimitiveJSRepeatedParam for arrays of primitive types.