Thanks @vasilakisfil. This was very helpful in a project I'm working on.
I experienced an issue where the checked attribute was not correctly being bound to the checked function.
This resulted to the last radio button always being the one visually selected.
The changes here seem to fix it.