add possibility to encode Iterable objects, fixed crash in python3 x86_64 if double_precision options was specified.