Allow mock overriding with functions

Not very pretty.
It helps to know if it was `undefined`, `null`, `false`, ...