Add feature to allow duplicate features in encoded output

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>
Implement duplicate features

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>
Merge branch 'refactor/non-unique-attributes' into develop