Serializers now inherit attributes and associations.

This solves the issue with attributes and associations inheritance.

Closes #449