use `read_attribute_for_serialization` to serialize ids

* in order to allow some optimisation in simple cases, we call `read_attribute_for_serialization` on parent with association_id name

This is an alternative to #221 with hooks to allow for optimized AR calls.