Support passing annotations to newinstance()