Added failing spec for function using boolean
Bugfix for nested functions
Merge branch 'master' into io