Removed codeswitch + rationalised call signatures.
Remove temporary test code for PR.
Fix to allow sharing speedups across rules on each cube.