#12 Fixes numeric and named param formats in SQL

Includes new tests to catch the issue, thanks to @chebizzarro for
spotting.
Merge pull request #1 from swl10/master

#12 Fixes numeric and named param formats in SQL