only serialize features that have unique locations per doc

Fixes #20