Ensure null is not being wrapped in a closure when extracting a value.
Add support for closure returning a String in profile definitions.
Add tests covering the closures in profile definition parsing.