Reduce non-determinism in ABI hashes with RULES and instance decls