Radio buttons don't check if bound to subdocument

As in the object I noticed that if a radio button set is bound to a subdocument using a dot notation (e.g. person.name) it doesn't checks. 

This happens because the $name variable passed is changed before the value check and so it always fails.