Fix for @on memoisation
Test case to ensure it is working. :v:
Merge pull request #193 from dylanegan/patch-1

Fix for @on memoisation