Clenanup addressing @charleswaddell's feedback.

 * Check SwatDateEntry values against their object type instead of null.
 * simplify assignUiValues() and assignValuesToUi() internals.