Convert Anchor objects into array representation

Change-Id: I9c5168d6f4b26aabb804afe75785881032946382
Merge "Convert Anchor objects into array representation" into frontend-rewrite