fixes bug which occured due to the wrong handling of arrays in annotations
adds short primitive type as a supported annotation element value
Test for the bug when retrieving the value of an annotation that is of
type array.