Added Model.allow_undefined() and UndefinedType.__bool__() (for Py3)