Fixed method signature of dup() method in codec
Merge pull request #8 from sjohnr/dup-fix

Fixed method signature of dup() method in codec