Datatypes: Only exclude null fields from dict/json

The test in to_dict assumed values should be not None or > 0.
This has been changed so that a field set to 0, e.g Flow.table_id will
appear in the dict/json representation of an object

Fixes #5