Avoid hashes as optional parameters exception

except for object initializers.
Merge pull request #163 from sinajahan/master

Avoid hashes as optional parameters exception