Huge refactor of ERP code to make it (a) possible to create new ERPs and (b) easy to silently replace random samplers/scorers with equivalent Terra implementations.
Terra version of all random samplers/scorers. In the standard test battery, these are actually slightly slower than their Lua equivalents. I suspect that this is due to the repeated conversions between Lua and Terra number types, because when I run inference over a compiled trace (where everything is in Terra and there's no need for type conversions) the Terra version of the random scorers win out slightly.