curry: Represent undefined entries as 'undefined

Because nil is a valid value, use 'undefined instead.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
curry: Add a Maybe monad

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>