Fixed ArgumentError raise.

See #604
Reverted hash syntax to 1.8.7 compat format.
Resolved ruby 1.8 test issue.