Fixed type resolution in case of inconsistencies between read and write method

Issue: SPR-11361