More specific check when looking for dynamic fields. If an object has __len__ implemented it would be called which is undesirable.
Merge pull request #18 from lbatteau/master

Fixed issue with get_dynamic_fields()