Minor bugfixes

Thanks for the driver. It is really cool and performs very fast.

Minor bugfixes:
- Added variable instead of primitive integer for call expecting parameter by reference
- Changed variable $coltype that does not exist for $type

Best,
Carles Mateo
http://blog.carlesmateo.com