Make posts api return multi value fields properly and add tests

* Also adds Link attribute type used in test