fix incorrect arity exception for custom encode-map and encode-seq