Upstream changes: Version 1.8.3 Revert to C version of loop_apply() as Rcpp version was appears to be having PROTECTion problems. (Also fixes #256)