Update AnnotationsBag.php

fixed getAsArray