Add maybeField

This field allows to easily introduce optional keys which can then be
conditionally rendered in templates.