fix to_hash
Merge pull request #173 from swistaczek/172-add_to_hash_opts

[#172] Fixing to_hash method arity