Fix setting a custom reference function.
Release 1.9.1
Update compiler dist for 1.9.1