use template for QVariantMap and QVariantHash
Merge pull request #23 from sunxiaoguang/master

Use template to serialize QVariantHash and QVariantMap