Fixed serialization bugs

- Fixed bug in Resource.get_* methods where relational fields were not always serialized
- ModelDataSet now filters out duplicate entries (from M2M fields) by default
- Added a hook for filtering the data set used in get_index