Some improvements to StructVariable and ComplexVariable.
Upgrading to v0.5.0.