hwdriver: Validate types of GVariants passed by user.