Script function GET_PUBLISHED_VALUE fails if used to read arrays