PNaCl: fix bug in repeat function (internally used integer type)
Examples: interactive kernel regression example