fixes #565 - enable storing radonly fields as global