Added verification to avoid 'Ileggal offset type' when the text is an ar...

- Added verification to avoid 'Ileggal offset type' when the text is an array and the language is a string or vice versa;
- Fxed getter returning incorrect data.