added NilUser; added support for sql.NullString in smarkdown template func