elm_entry: add 'const' in some getter functions