Folding builder and smart enter processor for anonymous functions (closes #26)