Fix generation of getter when generic serializable is used
Sample to check "Fix generation of getter when generic serializable is used"