Json serializable AnnotationsBag

AnnotationsBag implements \JsonSerializable interface. With test.