Changed "inprod" to a manual dot product calculation with a temporary variable. I verified that this change still results in equal mean and std. dev. of parameter estimates.
minor tweaks. made a comment that I need to change some parameters in the JAGS model to be homogenous across years (the model estimates year-specific parameters in many instances)