Modified the 'assoc' and 'rev_assoc' functions so they return an option value instead of raising an exception on failure.
Modified any code consuming 'assoc' and 'rev_assoc' to either remove the now-unneeded try/with, or pass the result through the new Option.getOrFailWith function which fails with the same message as 'assoc' and 'rev_assoc' would have.