isEmpty should evaluate functions - otherwise, they always return true.
Merge branch 'master' of github.com:carchrae/dustjs into mine
fixed bug with null in context.head - use !ctx instaed of ctx ===
undefined to avoid issues when ctx is null/false/0 and so on.  also
DRY'd the flag switch
Add tests to carchrae fork
merged