Allow default value to be a constructor.

Closes #19.