compiler/libec: Added support for String s; s.OnGetString() (#974)