Fix bug in annotation's value type determination.