* dataclass validation, fix #273 * support for tuple or dict in dataclasses * tweaks * adding example in docs