Skip deprecated properties when dumping objects

Fixes #14