Avoid hashes as optional parameters exception

except for object initializers.