Implement support for Qt4 with QVariant Invalid wrapping on missing values and type munge fix.

Not yet tested on Windows/Linux