vmware_guest: refactor spec serialization (#30819)
vmware_guest: refactor spec serialization (#30819)

* Refactor spec serialization so that native types are evaluated last.
* Remove redundant type checks

Fixes #30818

thaim/ansible,thaim/ansible