Issue 10510 - enforce should take any callable function

http://d.puremagic.com/issues/show_bug.cgi?id=10510